export const getValue = (vm, key) => new Function('vm', `return vm.${key}`)(vm);
export const getFunction = (vm, expr) => new Function('vm', `return () => vm.${expr}`)(vm);
export const setValue = (vm, key, value) =>
  new Function('vm', 'value', `vm.${key} = value`)(vm, value);
